x86/vmx: handle writes to MISC_ENABLE MSR
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 7 Sep 2020 08:37:23 +0000 (10:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Sep 2020 08:37:23 +0000 (10:37 +0200)
commit2454fa428d0b0d1705b8395db7674426ebf182aa
treecb2693f04e65c218f30e5f7b5b32be31b0ec1d42
parente52716154da04967f9b9d7cf9a1655ea4bcd9e93
x86/vmx: handle writes to MISC_ENABLE MSR

Such handling consist in checking that no bits have been changed from
the read value, if that's the case silently drop the write, otherwise
inject a fault.

At least Windows guests will expect to write to the MISC_ENABLE MSR
with the same value that's been read from it.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c